import app from '@system.app';
import router from '@system.router';

export default {
    data: {
        enterprise: '宁夏煤业',
        title: '带式输送机控制系统',
        tips: '系统正在初始化...',
        percent: 0,
    },
    onReady() {
        let that = this;
        setInterval(function() {
            if (that.percent == 100) {
                that.replacePageWithPageMine();
            }
            that.percent += 20;
        }, 0.5 * 1000);
    },
    exit(){
        app.terminate();
    },
    replacePageWithPageMine() {
        router.replace({
            uri: 'pages/mine/mine'
        });
    }
}
